<!DOCTYPE html>
<html class="x-admin-sm">
    <head>
        <meta charset="UTF-8">
        <title>{php}echo session('webtitle'){/php}</title>
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
        {load href="__STATIC__/xadmin/css/font.css" /}
        {load href="__STATIC__/xadmin/css/xadmin.css" /}
        {load href="__STATIC__/xadmin/js/jquery.min.js" /}
        {load href="__STATIC__/xadmin/lib/layui/layui.js" /}
        {load href="__STATIC__/xadmin/js/xadmin.js" /}
        {load href="__STATIC__/xadmin/js/cookie.js" /}
        {load href="__STATIC__/xadmin/js/md5.min.js" /}
        <title>{$list.webtitle}</title>
    </head>
    <body>
    <div class="x-body">
  
        <fieldset class="layui-elem-field">
            <legend>个人信息</legend>
            <div class="layui-field-box">
                <table class="layui-table">
                    <tbody>
                        <tr>
                            <th width="150px">姓名</th>
                            <td>{$list.xingming}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{$list.quanpin}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{$list.shoupin}</td>
                        </tr>
                        <tr>
                            <th>性别</th>
                            <td>{$list.sex}</td></tr>
                        <tr>
                            <th>出生日期</th>
                            <td>{$list.shengri}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{$list.age}周岁</td></tr>
                        <tr>
                            <th>参加工作时间</th>
                            <td>{$list.worktime}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{$list.gongling}年工龄</td></tr>
                        <tr>
                            <th>职务</th>
                            <td>{$list.js_zhiwu.title}</td></tr>
                        <tr>
                            <th>职称</th>
                            <td>{$list.js_zhicheng.title}</td></tr>
                        <tr>
                            <th>单位</th>
                            <td>{$list.js_danwei.title}</td></tr>
                        <tr>
                            <th>毕业院校</th>
                            <td>{$list.biye}</td></tr>
                        <tr>
                            <th>专业</th>
                            <td>{$list.zhuanye}</td></tr>
                        <tr>
                            <th>学历</th>
                            <td>{$list.js_xueli.title}</td></tr>

                    </tbody>
                </table>
            </div>
        </fieldset>

   <!--      荣誉信息 -->
        <fieldset class="layui-elem-field">
            <legend>历年获奖情况</legend>
            <div class="layui-field-box">
                <table id="rongyu" lay-filter="rongyu" lay-size="sm"></table>
            </div>
        </fieldset>
        <fieldset class="layui-elem-field">
            <legend>历年参与课题情况</legend>
            <div class="layui-field-box">
                <table id="keti" lay-filter="keti" lay-size="sm"></table>
            </div>
        </fieldset>
    </div>
    <script>
        layui.use('table', function(){
          var table = layui.table;
          
          //第一个实例
          var ry =table.render({
            elem: '#rongyu'
            ,method:"POST"   //数据接口
            ,url: '/srcry/'+"{$list.id}" //数据接口
            ,page: false //开启分页
            ,width:1050
            ,cols: [[ //表头
               {type:'numbers',sort:true,width:50,title:'序号'}
              ,{field: 'title',sort:true, title: '荣誉标题', minWidth:250}
              ,{title: '所属荣誉册',sort:true,width:250,templet:function(d){
                    var str='';
                    if(d.ry_tuce)
                    {
                        str = d.ry_tuce.title;
                    }
                    return str;
                }}
              ,{title: '获奖人',templet:function(d){
                    var str='';
                    if(d.hj_jsry)
                    {
                        for (var k = 0, length = d.hj_jsry.length; k < length; k++) {
                            if(k == 0){
                                str = d.hj_jsry[k].teacher.xingming;
                            }else{
                                str =str+'、'+d.hj_jsry[k].teacher.xingming;
                            }
                        }
                    }
                    return str;
                }}
              ,{title: '级别',sort:true,width:100,templet:function(d){
                    var str='';
                    if(d.ry_tuce)
                    {
                        str = d.ry_tuce.fz_school.dw_jibie.title;
                    }
                    return str;
                }}
              ,{title: '奖项',sort:true,width:100,templet:function(d){
                    var str='';
                    if(d.jx_category)
                    {
                        str = d.jx_category.title;
                    }
                    return str;
                }}
              ,{field: 'hjshijian',sort:true,width:120, title: '获奖时间'} 
              ,{title: '发证单位',sort:true, minWidth: 177,templet:function(d){
                    var str='';
                    if(d.ry_tuce)
                    {
                        str = d.ry_tuce.fz_school.jiancheng;
                    }
                    return str;
                }}
            ]]
          });

        //第二个实例
          var kt =table.render({
            elem: '#keti'
            ,method:"POST"   //数据接口
            ,url: '/srckt/'+"{$list.id}" //数据接口
            ,page: false //开启分页
            ,width:1050
            ,cols: [[ //表头
               {type:'numbers',sort:true,width:100,title:'序号'}
              ,{field: 'title',sort:true, title: '课题名称', minWidth:200}
              ,{field: 'bianhao',sort:true, title: '课题编号'}
              ,{title: '主持人',templet:function(d){
                var str='';
                if(d.kt_zcr)
                {
                    for (var k = 0, length = d.kt_zcr.length; k < length; k++) {
                        if(k == 0){
                            str = d.kt_zcr[k].teacher.xingming;
                        }else{
                            str =str+'、'+d.kt_zcr[k].teacher.xingming;
                        }
                    }
                }
                return str;
            }}
              ,{title: '立项单位',sort:true, minWidth: 177,templet:function(d){
                    var str='';
                    if(d.fz_school)
                    {
                        str = d.fz_school.jiancheng;
                    }
                    return str;
                }}
              ,{title: '级别',sort:true, minWidth: 177,templet:function(d){
                    var str='';
                    if(d.fz_school)
                    {
                        str = d.fz_school.dw_jibie.title;
                    }
                    return str;
                }}
              ,{field: 'jddengji',sort:true, title: '课题状态'}
            ]]
          });
        });
        </script>
    </body>
</html>